package com.question.business.org.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 机构
 * </p>
 *
 * @author star
 * @since 2023-09-14
 */
@Getter
@Setter
@TableName("t_org")
public class Org implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 机构名称
     */
    private String orgName;

    /**
     * 上级ID
     */
    private String parentId;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String district;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 启用状态(1:启用2:停用)
     */
    private Integer enabled;

    /**
     * 显示顺序
     */
    private Integer orgOrder;

    /**
     * 是否删除(0:否1:是)
     */
    @TableLogic
    private Integer isDeleted;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 创建用户
     */
    @TableField(fill = FieldFill.INSERT)
    private String createdUser;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedTime;

    /**
     * 更新用户
     */
    @TableField(fill = FieldFill.UPDATE)
    private String updatedUser;
}
